package com.pxene.dmp.constant;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class BaseConstant {
	
	private static Properties props = new Properties();
	static {
		try {
			props.load(BaseConstant.class.getResourceAsStream("/" + System.getProperty("config-file")));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	// 数据路径
	public static final String HDFS_DATA_ROOT_DIR = props.getProperty("hdfs.data.dir");
	// 保存临时文件的目录
	public static final String HDFS_TEMP_ROOT_DIR =props.getProperty("hdfs.temp.dir");
	//
	public static final String HDFS_TEMP_CLEARDATA_DIR = "cleardata/";
	
	public static final String HDFS_TEMP_GETDATA_DIR = "getdata/";
	
	public static final String HDFS_TEMP_SENDDATA_DIR = "senddata/";
	// 
	public static final String HDFS_TEMP_USERINFO_DIR = "userinfo/";
	//
	public static final String HDFS_TEMP_SEARCHWORD_DIR = "searchword/";
	//
	public static final String HDFS_TEMP_WEIXINBIZ_DIR = "weixinbiz/";
	
	public static final String HDFS_TEMP_BUSINESSCODE_DIR = "businesscode/";
	
	public static final String HDFS_TEMP_WEATHERCITY_DIR = "weathercity/";
	
	public static final String HDFS_TEMP_AUTOINFO_DIR = "autoinfo/";
	
	public static final String HDFS_TEMP_DOMAININFO_DIR = "domaininfo/";
	
	public static final String HDFS_TEMP_TICKETINFO_DIR = "domaininfo/";
	
	
	public static final String HDFS_TEMP_FAVOURITESITE_DIR = "favouritesite/";
	
	public static final String HDFS_TEMP_DOMAINUSER_DIR = "domainuser/";
	
//	public static final String FILE_3G_PREFIX = props.getProperty("hdfs.file.3g.prefix");
//	
//	public static final String FILE_4G_PREFIX = props.getProperty("hdfs.file.4g.prefix");
	
	public static final String FILE_PREFIX = props.getProperty("hdfs.file.prefix");
	
	public static final String FILE_SUFFIX = props.getProperty("hdfs.file.suffix");
	// 数据的分隔符
	public static final String FILE_SEPARATOR = props.getProperty("hdfs.file.separator");
	
	public static final String KV_URL = props.getProperty("kv.url");
	
	public static final String KV_USERNAME = props.getProperty("kv.username");
	
	public static final String KV_PASSWORD = props.getProperty("kv.password");
	
	public static final String API_SETUSERINFO = "setUserInfo";
	
	public static final String API_SETSEARCHWORD = "setSearchWord";
	
	public static final String API_SETWEIXINBIZ = "setWeixinBiz";
	
	public static final String API_SETBUSINESSCODE = "setBusinessCode";
	
	public static final String API_WEATHERCITY = "setWeatherCity";
	
	public static final String API_AUTOINFO = "setAutoInfo";
	
	public static final String API_FAVOURITESITE = "setFavouriteSite";
	
	public static final String API_DOMAININFO = "setDomainInfo";
	
	public static final String API_SETDOMAINUSER = "setDomainUser";
	
	public static final String LOG_PREFIX = "<=ee-debug=>";
	
	public static final int REDUCE_NUMBER = 124;
	
}
